package tu.j2ee.tasktracker.dao;

import java.util.List;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.roo.addon.layers.repository.jpa.RooJpaRepository;
import tu.j2ee.tasktracker.domain.Task;

@RooJpaRepository(domainType = Task.class)
public interface TaskDAO {
	
	List<Task> findByProjectId(Long projectId);
	
	List<Task> findByAssignedUserId(Long cutomUserId);
	
	List<Task> findByAssignedUserIdAndProjectId(Long assignedUserId, Long projectId);
}
